package com.decent.redis;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class RedisApplication {

    public static void main(String[] args) {
        SpringApplication.run(RedisApplication.class, args);
    }

    /**
     * 配置跨域访问的过滤器
     * @return
     */
//    @Bean
//    public FilterRegistrationBean myRegisterFilter(){
//        FilterRegistrationBean bean = new FilterRegistrationBean();
//        bean.addUrlPatterns("/test/easyBuild/*");
//        bean.addUrlPatterns("/export/txt");
//        bean.setFilter(new CrosFilter());
//        return bean;
//    }
}
